<?php
class date
    {
    function getDateWeekday($date) { return date_translation::toGerman(date("l, j. F Y", strtotime($date))); }

    function getDateWeekdayWithoutYear($date) {

    return date_translation::toGerman(date("l, j. F", strtotime($date))); }


    /**
    * gibt ein Array mit allen Daten zwischen Daten aus
    * 
    * @param mixed $date1
    * @param mixed $date2
    */
    function getDateBetween($dateFrom, $dateTo)
        {

        // Specify the start date. This date can be any English textual format
        //$date_from = "2010-02-03";
        $dateFrom=strtotime($dateFrom); // Convert date to a UNIX timestamp

        // Specify the end date. This date can be any English textual format
        //$date_to = "2010-09-10";
        $dateTo=strtotime($dateTo); // Convert date to a UNIX timestamp

        // Loop from the start date to end date and output all dates inbetween

        $dateList=array();

        for ($i=$dateFrom; $i <= $dateTo; $i+=86400)
            {
            //echo date("Y-m-d", $i).'<br />';
            $dateList[]=date("Y-m-d", $i); // . '<br />';
            }

        return $dateList;
        }
    }
?>